package org.elanfox.intellicommunity.common.ienum;


import org.elanfox.intellicommunity.common.ienum.base.CodeDescCommonEnum;

/**
 * @author allan
 * @date 2018-09-10
 */
public enum RoleEnum implements CodeDescCommonEnum {
    ADMIN("ROLE_ADMIN", "管理员"),
    DELIVERER("ROLE_DELIVERYER", "发货员");

    private String code;
    private String desc;

    RoleEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
